package model

import (
	"time"
)

const UserItemName = "user_item"

type UserItem struct {
	Id         int `json:"id" orm:"auto" sql:"INT"`
	UserId     int `json:"user_id" sql:"INT"`
	ItemId     int `json:"item_id" sql:"INT"`
	Number     int `json:"number" sql:"INT"`
	Durability int `json:"durability" sql:"TINYINT"`

	UpdateTime *time.Time `json:"update_time" orm:"updateTime" sql:"DATETIME"`

	Change bool
}
